﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
        <title>@ViewBag.Title - @SimpleForum.Data.Services.ConfigurationService.ForumName</title>

        <link href="@Url.ThemeContent("CSS/reset.css")" rel="stylesheet" type="text/css" />
        <link href="@Url.ThemeContent("CSS/site.css")" rel="stylesheet" type="text/css" />
        @Html.RenderResources("css")
    </head>

    <body>
        @{ Html.RenderAction("Notifications", "User"); }

        <div id="container">
            <div id="header">
                <div id="top">
                    <h1><a href="#">@SimpleForum.Data.Services.ConfigurationService.ForumName</a></h1>

                    @if(User.Identity.IsAuthenticated) { <p id="userbox">Welcome @User.Identity.Name &nbsp; @Html.ActionLink("Logout", "Logout", "User")</p> }
                    else { <p id="userbox">Welcome guest &nbsp; @Html.ActionLink("Login", "Login", "User") &nbsp; | &nbsp; @Html.ActionLink("Register", "Register", "User")</p> }
                    
                    <span class="clearfix">&nbsp;</span>
                </div>
            </div>

            <div id="content">
                @RenderBody()
            </div>

            <div class="push"></div>
        </div>

        <div id="footer-wrap">
	        <div id="footer">
                <div id="footer-top">
        	        <div class="align-left">
                        <h4>XX Online Users</h4>
                        <h4>XX Registered Users</h4>
        	        </div>
                    <div class="align-right">
                        <h2>@Html.ActionLink("Admin", "Index", "Admin")</h2>
                        <h2>@Html.ActionLink("Help", "Index", "Help")</h2>
                    </div>
                    <span class="clearfix"></span>
                </div>
        
                <div id="footer-bottom">
        	        <p class="align-left">&copy; 2011 SimpleForum</p>
                </div>
            </div>
        </div>

        <script src="@Url.ThemeContent("JS/jquery-1.7.1.min.js")" type="text/javascript" language="javascript" ></script>
        @Html.RenderResources("js")
    </body>
</html>